/*
 * File Created: 2019-12-07 11:56:41
 * Author: 余保林 (yubaolin6@outlook.com)
 * Desc: 订单相关接口
 * Last Modified: 2019-12-07 11:56:51
 * Modified By: 余保林 (yubaolin6@outlook.com>)
 */

import request from '@/utils/request'
import Qs from 'qs'

// 权益订单搜索
export function privilegeOrderQuery(params) {
  return request.get(`/platform/privilege/order/query`, {params})
}

/**
 * 权益订单详情
 *
 * @export
 * @param {*} orderCode
 * @returns
 */
export function privilegeOrderDetail(orderCode) {
  return request.get(`/platform/privilege/order/${orderCode}`)
}

/**
 *
 * 统计当前经销商当日权益订单
 * @export
 * @returns
 */
export function privilegeOrderStatistics() {
  return request.post(`/platform/privilege/order/statistics`)
}

/**
 *  当日权益订单金额统计
 * @export
 * @returns
 */
export function privilegeOrderMoneyTotal() {
  return request.get(`/platform/privilege/statistics/total`)
}


/**
 * 观影订单管理
 *
 * @export
 * @param {*} params
 * @returns
 */
export function viewingOrder(params) {
  return request.get('/platform/movie/order/query', {params});
}


/**
 * 观影订单详情
 *
 * @export
 * @returns
 */
export function viewingOrderDetail(orderId) {
  return request.get(`/platform/movie/order/${orderId}`);
}